package com.deepcode.StringProcess.strategy;

import com.deepcode.StringProcess.domain.CharObject;

public interface CharacterReplacementStrategy {
    /**
     * execute character replacement
     * @param node 需要替换的字符节点
     * @param count 连续字符数量
     * @return 替换后的字符，如果返回'\0'表示删除该节点
     */
    char replace(CharObject node, int count);

    boolean canReplace(char ch);
}